package com.bycx.framework.redis;

import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.stereotype.Component;
import org.springframework.util.StringUtils;

/**
 * Created by yiqr on 2017/6/12.
 */
@Component
public class JedisCommonConnectionFactory extends JedisConnectionFactory {

    @Override
    public void setPassword(String password) {
        if (!StringUtils.isEmpty(password)) {
            super.setPassword(password);
        }
    }
}
